package com.talkingdata.hadoop.guard.bean;

import java.sql.Timestamp;

public class AppFinishOffset {
    private int id ;
    private String clusterId;
    private String applicationId;
    private Long finishTime;
    private String timestamp;

    @Override
    public String toString() {
        return "AppFinishOffset{" +
                "clusterId='" + clusterId + '\'' +
                ", applicationId='" + applicationId + '\'' +
                ", finishTime=" + finishTime +
                ", timestamp='" + timestamp + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClusterId() {
        return clusterId;
    }

    public void setClusterId(String clusterId) {
        this.clusterId = clusterId;
    }

    public String getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(String applicationId) {
        this.applicationId = applicationId;
    }

    public Long getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Long finishTime) {
        this.finishTime = finishTime;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public AppFinishOffset(String clusterId, String applicationId, Long finishTime, String timestamp) {
        this.clusterId = clusterId;
        this.applicationId = applicationId;
        this.finishTime = finishTime;
        this.timestamp = timestamp;
    }
    public AppFinishOffset(String clusterId, String applicationId, Long finishTime, Timestamp timestamp) {
        this.clusterId = clusterId;
        this.applicationId = applicationId;
        this.finishTime = finishTime;
        this.timestamp = timestamp.toString();
    }
}
